<%-- 
    Document   : viewcomp
    Created on : Apr 16, 2012, 3:52:59 PM
    Author     : project
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">


<%@page import="java.sql.*"%>
<%@page import="jobportal.Dbconn"%>
<%
            try {
                Connection con = Dbconn.getConn();
                Statement st = con.createStatement();
                String compid = "";
                if (session.getAttribute("role") != null && session.getAttribute("role").toString().equalsIgnoreCase("company")) {
                    compid = (String)session.getAttribute("username");
                } else {
                    compid = request.getParameter("compid");
                }
                ResultSet rs = st.executeQuery("select * from company where compid='" + compid + "'");
                String img = "";
                if (session.getAttribute("username") != null) {
                    img = "../";
                }
                while (rs.next()) {



%>


<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
        <td align="center" valign="top"><img src="images/blank.gif" width="1" height="0" border="0" /><br />

    <tr>
        <td width="49%" align="left" valign="top" style="padding-left:3px; padding-top:3px; padding-bottom:3px;">
            <table width="99%" height="505" bgcolor="#FFFFFF" style="padding-right:0px;">
                <tr style="padding-top:10px;">
                    <td colspan="3"><div  class="mainheading_emp" style="float:left; text-transform:capitalize;">Company Details</div></td>
                </tr>
                <tr style="padding-top:10px;">
                    <td colspan="3"><strong></strong><img src="<%=img%>src/getpic.jsp?id=<%=rs.getString("compid")%>&table=company&col=logo&pk_col=compid" width="257" height="78" border="0" /></td>
                </tr>
                <tr style="padding-top:10px;">
                    <td width="18%" > <span class="tbl_pfl_txt" style="padding-left:10px;">Company Name </span></td>
                    <td width="1%" >:</td>
                    <td width="27%" ><span style="padding-left:5px;" class="tbl_pfl_txt"><%=rs.getString("compname")%></span></td>
                </tr>
                <tr style="padding-top:10px;">
                    <td > <span class="tbl_pfl_txt" style="padding-left:10px;">Company Type</span></td>
                    <td >:</td>
                    <td ><span style="padding-left:5px;" class="tbl_pfl_txt"><%=rs.getString("type")%></span></td>
                </tr>
                <tr style="padding-top:10px;">
                    <td > <span class="tbl_pfl_txt" style="padding-left:10px;">Company Category Type</span></td>
                    <td >:</td>
                    <td ><span style="padding-left:5px;" class="tbl_pfl_txt"><%=rs.getString("cattype")%></span></td>
                </tr>
                <tr style="padding-top:10px;">
                    <td > <span class="tbl_pfl_txt" style="padding-left:10px;">Company Sector</span></td>
                    <td >:</td>
                    <td ><span style="padding-left:5px;" class="tbl_pfl_txt"><%=rs.getString("sector")%></span></td>
                </tr>

                <tr >
                    <td ><span class="tbl_pfl_txt" style="padding-left:10px;">Address</span></td>
                    <td >:</td>
                    <td ><span style="padding-left:5px;" class="tbl_pfl_txt">
                            <%=rs.getString("address")%>    </span></td>
                </tr>
                <tr >
                    <td height="241" colspan="12" ><div style="background:#FFFFFF; width:100%" >


                            <table  width="100%" bgcolor="#FFFFFF">

                                <tr>
                                    <td ><div class="mainheading_emp">Company Profile:</div></td>
                                </tr>

                                <tr >
                                    <td style="padding-left:10px;" ><p>&nbsp;</p>
                                        <p><%=rs.getString("profile")%>  &nbsp;</p></td>
                                </tr>




                            </table>
                        </div></td>
                </tr>
            </table>

        </td>
    </tr>



    <tr>
        <td colspan="2" align="left" valign="top"  >
            <table width="100%" height="166" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                <tr valign="middle">
                    <td height="28" colspan="3"><div align="left" class="mainheading_emp">Contact Details</div></td>

                </tr>
                <tr>
                    <td width="17%" height="29" valign="middle"   style="padding-left:8px;"><div align="left"><strong>Contact Person</strong></div></td>
                    <td width="1%" valign="middle"   style="padding-left:8px;">:</td>
                    <td height="29" colspan="2" align="left" valign="middle" ><%=rs.getString("personname")%>  </td>
                </tr>
                <tr>
                    <td height="29" valign="middle" style="padding-left:8px;"><div align="left"><strong>Mobile Number </strong></div></td>
                    <td height="29" valign="middle" style="padding-left:8px;">:</td>
                    <td height="29" colspan="2" align="left" valign="middle" ><%=rs.getString("mobile")%>  </td>
                </tr>

                <tr>
                    <td height="29" valign="middle"  style="padding-left:8px;"><div align="left"><strong>Email</strong></div></td>
                    <td height="29" valign="middle"  style="padding-left:8px;">:</td>
                    <td height="29" colspan="2" align="left" valign="middle"><%=rs.getString("email")%>  </td>
                </tr>
            </table>

        </td>
    </tr>
    <tr>
        <td colspan="2" align="left" valign="middle" height="1px"></td>
    </tr>
    <tr>
        <td colspan="2" align="left" valign="middle" style="padding-left:3px; padding-top:3px; padding-bottom:3px;">


        </td>
    </tr>

</table>
</td>
<%}
            } catch (Exception e) {
                out.println(e);
            }
%>
